{//库存列表}
<h2>{$title}</h2>
<table id='tab' class="easyui-datagrid" data-options="url:'__SELF__',fitColumns:true,singleSelect:true,toolbar:'#tool'">   
    <thead>   
        <tr>   
            <th data-options="field:'id',width:'100'">ID</th>               
            <th data-options="field:'pid',width:'100'">产品</th> 
            <th data-options="field:'tag',width:'100'">产品属性值</th> 
            <th data-options="field:'num',width:'100'">数量</th>   
            <th data-options="field:'money',width:'100'">价格</th>        
            <th data-options="field:'ctime',width:'100'">添加时间</th>
            <th data-options="field:'utime',width:'100'">修改时间</th>   
           
        </tr>   
    </thead>   
    
</table>  
<div id='tool'>
<a href="{:U('add')}" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
<a id='editbtn' href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
<a id='delbtn'  href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true">删除</a>

</div>
<form method="post" action="__CONTROLLER__/add/id/{$Think.get.id}">
<foreach name='attr' item="v">
<div>
	<label>{$v.title}</label>
		<eq name="v.isselect" value="0">
			<input type="text" name="title" style="width:150px;" class="easyui-textbox"/>
		<else/>
			<select class="easyui-combobox" name="{$v.id}" style="width:150px;">
				<foreach name="v.options" item="v1">
					<option value="{$v1}">{$v1}</option>
				</foreach>
			</select>
		</eq>
</div>
</foreach>
<div>
	<label>数量</label>
	<input type="text" name="num" class="easyui-numberbox"  data-options="min:0,precision:0" style="width:150px;"/>
</div>
<div>
	<label>价格</label>
	<input type="text" name="money" class="easyui-numberbox"  data-options="min:0,precision:2" style="width:150px;"/>元
</div>

<input type="submit" value="提交" class="easyui-linkbutton" data-options="width:'70'"/>
</form>
<script>

</script>